#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    mpGraphicsBlurEffect= new QGraphicsBlurEffect(this);

    ui->label->setGraphicsEffect(mpGraphicsBlurEffect);
}

MainWindow::~MainWindow()
{
    delete ui;
}







void MainWindow::on_comboBox_currentIndexChanged(int index)
{
    qDebug()<<QGraphicsBlurEffect::BlurHint(index);
     mpGraphicsBlurEffect->setBlurHints(QGraphicsBlurEffect::BlurHint(index));
}


void MainWindow::on_horizontalSlider_valueChanged(int value)
{
    mpGraphicsBlurEffect->setBlurRadius(value/10.0);
}

